<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <title>示例页面</title>
    <link rel="stylesheet" type="text/css" href="../lib/swiper/css/swiper.min.css" />
    <link rel="stylesheet" href="../css/reset.css">
    <link rel="stylesheet" href="../css/global.css">
    <script src="../lib/autoSize.js"></script>
</head>

<body>
    <header>
        <div class="left-btn">
            <img class="back" src="../images/header/back.png" alt="" onclick="history.go(-1)">
        </div>
        <h1 class="">示例页面</h1>
        <div class="right-btn">
            <!-- 此处写右边按钮-->
        </div>
    </header>
    <main>
        <nav class="swiper-container">
            <ul class="swiper-wrapper">
                <script type="text/html" id="menu">
                    {{each}}
                    <li class="swiper-slide" data-stairId="{{$value.id}}" data-col-name="{{$value.titleName}}">
                        {{$value.titleName}}
                    </li>
                    {{/each}}
                </script>
            </ul>
        </nav>
        <div class="page-container">

        </div>
    </main>
    <footer></footer>

    <script src="../lib/jquery-3.2.1.min.js"></script>
    <script src="../lib/swiper/js/swiper.jquery.min.js"></script>
    <script src="../lib/template-web.js"></script>
    <script src="../lib/fastclick.js"></script>
    <script src="../lib/layer.js"></script>
    <script src="../js/common.js"></script>
    <script src="../js/jquery.footer.js"></script>

    <script>
        $(function () {
            FastClick.attach(document.body);
        });
//        底部菜单演示
        $('footer').renderFooterMenu({
            activeIndex: 0,
            urls:['default.html','default.html','default.html','default.html']
        });

//二级菜单演示
        var menu = [];
        for (var i = 1; i <= 5; i++) {
            menu.push({
                id: i,
                titleName: '菜单' + i
            })
        }
        var html = template('menu', menu);
        $(".swiper-wrapper").html(html);

        new Swiper('.swiper-container', {
            slidesPerView: 3.5,
            observer: true,
            onTap: function (swiper) {
                $(swiper.clickedSlide).addClass('active').siblings().removeClass('active');
            },
            onInit: function (swiper) {

            }
        });

        //使用 data-url 跳转
        tools.goSkip();

        function render(data) {

        }
    </script>
</body>

</html>